﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QuickSearch.aspx.cs" Inherits="BEGDC.CC.Web.View.QuickSearch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Quick Search</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <br />
    <br />
    <br />
    <br />
    <br />
    <table>
        <tr>
            <td>
                <strong>Year:</strong>
            </td>
            <td>&nbsp;&nbsp;
                <a>All</a>
            </td>
        </tr>
        <tr>
            <td>
                <strong>AppType:</strong>
            </td>
            <td>&nbsp;&nbsp;
                <a>All</a>&nbsp;&nbsp;
                <a>EV</a>&nbsp;&nbsp;
                <a>CR</a>&nbsp;&nbsp;
                <a>OCR</a>&nbsp;&nbsp;
                <a>OCV</a>
            </td>
        </tr>
        <tr>
            <td>
                <strong>Status:</strong>
            </td>
            <td>&nbsp;&nbsp;
                <a>All</a>
            </td>
        </tr>
        <tr>
            <td>
                <strong>Department:</strong>
            </td>
            <td>&nbsp;&nbsp;
                <a>All</a>
            </td>
        </tr>
    </table>
    <div id="divGrid">
        <asp:DataGrid ID="dgTaskList" ShowHeader="True" AutoGenerateColumns="False" GridLines="both"
            CellPadding="2" runat="server" PageSize="10" AllowPaging="True" PagerStyle-Visible="False"
            AllowSorting="True" CssClass="tablestyle">
            <SelectedItemStyle></SelectedItemStyle>
            <ItemStyle CssClass="tbody"></ItemStyle>
            <HeaderStyle CssClass="thead"></HeaderStyle>
            <FooterStyle></FooterStyle>
            <Columns>
                <asp:BoundColumn Visible="False" DataField="FlowID"></asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="AppID"></asp:BoundColumn>
                <asp:BoundColumn Visible="False" DataField="CurrentActiveStepName"></asp:BoundColumn>
                <asp:TemplateColumn HeaderText="Application#<br/> 申请单号" SortExpression="AppNo">
                    <ItemStyle Wrap="False"></ItemStyle>
                    <ItemTemplate>
                        <a href="#" onclick="window.open('../<%# !DataBinder.Eval(Container.DataItem,"Type").Equals("EZV") ?  "workflow/workflowexecution" : "ezvisit/ezvrequest" %>.aspx?AppID=<%# DataBinder.Eval(Container.DataItem,"AppID") %>&ID=<%# DataBinder.Eval(Container.DataItem,"AppID") %>&FlowID=<%# DataBinder.Eval(Container.DataItem,"flowid") %>&PDType=<%# DataBinder.Eval(Container.DataItem,"Type")%>&State=Par&Type=App',null,'height=760,width=1024,top=25,left=25,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes')"
                            onmouseover="this.style.cursor='hand'" />
                        <%# DataBinder.Eval(Container.DataItem,"AppNo") %></a>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="RequesterNameEN" ReadOnly="True" HeaderText="Applicant <br>申请"
                    SortExpression="RequesterNameEN">
                    <ItemStyle Wrap="False"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="Department" ReadOnly="True" HeaderText="Dept. <br/>部门"
                    SortExpression="Department">
                    <ItemStyle Wrap="False"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="Company" ReadOnly="True" HeaderText="Customer Company<br> 客户公司"
                    SortExpression="Company">
                    <ItemStyle Wrap="False"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="Venue" ReadOnly="True" HeaderText="Venue<br> 地点" SortExpression="Venue"
                    Visible="True">
                    <ItemStyle Wrap="False"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="RequestedDateFrom" ReadOnly="True" HeaderText="Begin Date <br/> 开始时间"
                    SortExpression="RequestedDateFrom" DataFormatString="{0:M/d/yyyy}">
                    <ItemStyle Wrap="False"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="RequestedDateTo" ReadOnly="True" HeaderText="End Date <br/>结束时间"
                    SortExpression="RequestedDateTo" DataFormatString="{0:M/d/yyyy}">
                    <ItemStyle Wrap="False"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="CurrentActiveRole" ReadOnly="True" HeaderText="Current Actor <br/>当前操作"
                    SortExpression="CurrentActiveRole">
                    <ItemStyle></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="CurrentActiveStepName" ReadOnly="True" HeaderText="Step <br/>操作步骤"
                    SortExpression="CurrentActiveStepName">
                    <ItemStyle></ItemStyle>
                </asp:BoundColumn>
                <asp:TemplateColumn HeaderText="Status<br/>状态" Visible="True">
                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    <ItemTemplate>
                        <img src="../Images/Flag<%# DataBinder.Eval(Container.DataItem,"StateCode") %>.gif"
                            alt="<%# DataBinder.Eval(Container.DataItem,"StateCode") %>" title="<%# DataBinder.Eval(Container.DataItem,"StateCode") %>" />
                    </ItemTemplate>
                </asp:TemplateColumn>
            </Columns>
        </asp:DataGrid>
    </div>
    <table id="Table3" cellspacing="0" cellpadding="0" class="pagecounting">
        <tbody>
            <tr>
                <td>
                    Total Records:
                    <asp:Label ID="lblRecordCount" runat="server">lblRecordCount</asp:Label>
                    &nbsp;&nbsp;&nbsp;
                    <img src="../images/book_open.gif" alt="PageIcon" />&nbsp;Page:
                    <asp:Label ID="lblCurrentPageIndex" runat="server">lblCurrentPageIndex</asp:Label>
                    &nbsp;/&nbsp;
                    <asp:Label ID="lblPageCount" runat="server">lblPageCount</asp:Label>
                </td>
                <td>
                    <asp:ImageButton ID="btnPageFirst" runat="server" ImageUrl="../images/pg_first.gif"
                        ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                    <asp:ImageButton ID="btnPagePrev" runat="server" ImageUrl="../images/pg_pre.gif"
                        ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                    <asp:ImageButton ID="btnPageNext" runat="server" ImageUrl="../images/pg_next.gif"
                        ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp;
                    <asp:ImageButton ID="btnPageLast" runat="server" ImageUrl="../images/pg_last.gif"
                        ImageAlign="AbsMiddle"></asp:ImageButton>&nbsp; Go To Page:
                    <asp:TextBox ID="txtPage" runat="server" CssClass="txtbox width40" onmouseover="this.className='txtboxover width40';"
                        onMouseOut="this.className='txtbox width40';" MaxLength="5"></asp:TextBox>
                    <asp:ImageButton ID="btnGotoPage" runat="server" ImageUrl="../images/book_open.gif">
                    </asp:ImageButton>
                </td>
            </tr>
        </tbody>
    </table>
    </table>
    </form>
</body>
</html>
